﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Workflow.IDAO;
using Workflow.IService;
using Workflow.Model;

namespace Workflow.Service
{
	public class PaymentService : IPaymentService
	{
		public IPaymentDao PaymentDao { get; set; }
		/// <summary>
		/// payment
		/// </summary>
		/// <returns></returns>
		public IList<Payment> GetPaymentList(string type)
		{
			return PaymentDao.GetPaymentList(type);
		}

		public Payment GetPaymentById(string id)
		{
			return PaymentDao.Get(id);
		}
	}
}
